home *** CD-ROM | disk | FTP | other *** search
- #
- # SccsId = @(#)dps 1.3 94/07/08
- #
- FAXHOME=${FAXHOME:-/opt/FAXserver}
- PAPERLENGTH=11
- PATH=$FAXHOME/bin:/bin:/usr/bin
- RESOLUTION=200
- #
- # If you wish to use a Display PostScript server other than the one
- # on the system running the fax server, change the following to
- # specify the name of the DPS server to use.
- #
- DISPLAY=localhost:0.0
- export FAXHOME PAPERLENGTH PATH RESOLUTION DISPLAY
-
- MYNAME=$0
- OFILE=
- PSARGS=
- PSFILE=
-
- while [ "$1" != "" ]
- do
- case "$1" in
- -s)
- PAPERLENGTH=$2
- if [ "$PAPERLENGTH" = "" ]
- then
- echo $MYNAME: missing paperlength
- exit 1
- fi
- shift
- ;;
-
- -d | -D | -f | -O | -P | -s)
- if [ "$2" = "" ]
- then
- echo $MYNAME: argument to $1 missing
- exit 1
- fi
- PSARGS="$PSARGS $1 $2"
- shift
- ;;
-
- -o)
- if [ "$2" = "" ]
- then
- echo $MYNAME: missing output filename
- exit 1
- fi
- OFILE=$2
- shift
- ;;
-
- -*)
- PSARGS="$PSARGS $1"
- ;;
-
- *)
- if [ "$PSFILE" ]
- then
- OFILE=$1
- else
- PSFILE=$1
- fi
- esac
- shift
- done
-
- if [ ! "$PSFILE" -o ! "$OFILE" ]
- then
- echo usage: $MYNAME '[options]' psfile outputfile
- exit 1
- fi
-
- dpstiff $PSARGS -o $OFILE $PSFILE
-